﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Q7.BevTree
{
    public class BevNodePreconditionNOT : BevNodePrecondition
    {
        private BevNodePrecondition _a;

        public BevNodePreconditionNOT(BevNodePrecondition a)
        {
            if (a == null)
                throw new ArgumentException("Invalid arguments!");
            _a = a;
        }

        public override bool Evaluate(BevNodeInputParam input)
        {
            return !_a.Evaluate(input);
        }
    }
}
